package com.example.web.controller;

import com.example.entity.Netval;
import com.example.entity.Organization;
import com.example.qo.NetvalQueryObject;
import com.example.service.INetvalService;
import com.example.utils.JsonResult;
import com.example.utils.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/fund")
public class NetvalController {

    @Autowired
    private INetvalService netvalService;

    @GetMapping()
    public JsonResult<TableDataInfo> fund(Integer pageNum,Integer pageSize,String sortField,String sortDirection){

        TableDataInfo netvals = netvalService.fund(pageNum,pageSize,sortField,sortDirection);
        return JsonResult.success(netvals);
    }

}
